/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarTypesDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarTypeInterface {

    ArrayList<CarTypesDTO> readByAll();

    CarTypesDTO findByid(int id);

    ArrayList<CarTypesDTO> findByName(String name);

    boolean create(CarTypesDTO dto);

    boolean update(CarTypesDTO dto);

    boolean delete(int id);

    boolean delete(CarTypesDTO dto);
}
